#ifndef Z_INC_SERIAL_H
#define Z_INC_SERIAL_H

#include <zephyr/types.h>

typedef int (*serial_rx_proccess_t)(uint8_t *data, uint16_t len);

struct serial_inst
{
    int (*tx)(const uint8_t *const data, uint16_t len);
};

struct serial_inst *serial_init(serial_rx_proccess_t rx_proccess);

#endif // Z_INC_SERIAL_H
